#ifndef DECOMPRESS_H
#define DECOMPRESS_H

#ifndef GENESIS_DATATYPES
#define GENESIS_DATATYPES
typedef unsigned char byte;
typedef unsigned short word;
#endif

void KosDec(byte *source, byte *destination, bool Moduled);
long EniDec(byte *source, byte *destination);
long NemDec(byte *source, byte *destination);

bool getvalue(void);
unsigned char getbits(int number, unsigned char* input, int *offset);
int stage_1 (long *pointer, byte *rompointer, byte *bufferpointer);
void stage_2 (long *pointer, byte *rompointer, byte *bufferpointer, unsigned long *tiles, short rtiles, bool alt_out, int *out_loc);



#endif
